from datetime import datetime

from forward.extend.pydantic.base import BaseSchema


class PrizeSchema(BaseSchema):
    name: str
    img: str | None = None
    num: int
    status: int = 0
    is_deleted: int = 0


class PrizeCreateSchema(PrizeSchema):
    pass


class PrizeOutSchema(PrizeSchema):
    id: int
    created_time: datetime | None = None
